package org.dromara.setting.domain.bo;

import org.dromara.setting.domain.SettingConfigGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 配置组业务对象 setting_config_group
 *
 * @author LXK-RY5
 * @date 2024-08-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SettingConfigGroup.class, reverseConvertGenerate = false)
public class SettingConfigGroupBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 配置名称
     */
    @NotBlank(message = "配置名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 配置类型 wx_mini=微信小程序， wx_app=微信APP  wx_mp=微信公众号recharge=充值配置
     */
    @NotBlank(message = "配置类型 wx_mini=微信小程序， wx_app=微信APP  wx_mp=微信公众号recharge=充值配置不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sortNum;

    /**
     * 备注
     */
    private String remark;


}
